package com.tencent.wework.demo.base

import com.tencent.wework.list.LmAdapter
import com.tencent.wework.list.easy.EasyListFragment
import com.tencent.wework.list.easy.EasyViewModel

/**
 * Created by huangwei on 2019/5/30.
 */
abstract class CommonListFragment<DATA,VM: EasyViewModel<DATA>>:EasyListFragment<DATA,VM>(){

    override fun initAdapter(): LmAdapter {
        val adapter = super.initAdapter()
        adapter.loadingMoreCell = CommonLoadingMoreCell()
        adapter.noMoreCell = CommonNoMoreCell()
        return adapter
    }
}